package com.phiture.erp.produce.dal.pojo.dto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 物料需求计划分页 Request DTO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpMaterialRequirementPlanPageReqDTO extends PageParam {

    @Schema(description = "主计划编码")
    private String sourceBillNo;

    @Schema(description = "物料需求计划编码")
    private String mrpNo;

    @Schema(description = "销售订单编码")
    private String saleOrderNo;

    @Schema(description = "物料需求计划名称", example = "王五")
    private String mrpName;

    @Schema(description = "审批状态", example = "2")
    private Integer status;

    @Schema(description = "物料需求计划描述")
    private String mrpDesc;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}